package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.domain.Book;

import java.util.List;

public interface BookService {
    //新增
    boolean save(Book book);
    //删除
    boolean delete(Integer id);
    //查询所有
    List<Book> selectBook();
    //根据id查询
    Book getById(Integer id);
    //分页查询
    IPage<Book> getPage(int currentPage,int page);
    //修改
    boolean update(Book book);
}
